package com.myself.cloud.service.controller;

import com.myself.cloud.api.ISystemErrorService;
import com.myself.cloud.service.exception.BusinessException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/analyse/testError")
public class ErrorCodeTestController {

    @Autowired
    private ISystemErrorService iSystemErrorService;

    @RequestMapping("/test")
    public void test() {
        throw new BusinessException("111111", "");
    }

    @RequestMapping("/errorMap")
    public List<Map<String, String>> list() {
        return null;
    }

}
